package zy0155;

public class MyThread extends Thread{
	int lunci;
	int sum=0;
	public MyThread(int lunci) {
		this.lunci=lunci;
	}
	@Override
	public void run() {
		for(int i=1;i<=10;i++){
			sum+=i+lunci*10;
		}
		System.out.println(Thread.currentThread().getName()+":"+sum);
	}
}
